export interface LoginRes {
  token: string
  user: {
    expireTime: number
    homePath: string
    id: number | string
    orgInfo: {
      appLog: string
      id: string
      orgName: string
      realName: string
      roles: {
        code: string
        homePath: string
        name: string
      }[]
      shopInfo: string
    }
    token: string
    username: string
  }
}

export interface AuthFaceReq {
  idCard: string
  name: string
  oid: number
}
export interface AuthFaceRes {
  url: string
  certifyId: string
}

export interface ESignAuthFaceRes {
  resParam: {
    originalUrl: string
    url: string
    faceToken: string
  }
}

export interface GetESignFaceByOidRes {
  result: {
    status: string
  }
}

export interface SaveIDCardReq {
  name: string
  idCard: string
}

export interface SaveIDCardImageReq extends SaveIDCardReq {
  idCardUrl: string
  email: string
  contractUserInfo: string
}

export interface SetPhoneNumReq {
  encryptedData?: string
  code?: string
  iv?: string
}

export interface loginRequest {
  /* 用户名 */
  username: string
  /** 密码 */
  password: string
  /** 验证码密钥  */
  captchaKey: string
  /** 验证码 */
  captcha: string
  /** 登录标识 */
  platform: string
  /** 登录模式 */
  mode: string
}

export interface loginChangePasswordRequest {
  /** 旧密码 */
  passwordOld: string
  /** 新密码 */
  password: string
  /** 确认密码 */
  confirmPassword: string
}
